/**
    定义一个手机抽象类，
      手机型号属性， 打电话，发短信， 打游戏，
    功能机，                     智能机
     只能接打电话发短不能玩游戏
     按钮接打电话
     触屏接打电话
 */
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var IMobile = /** @class */ (function () {
    function IMobile() {
    }
    return IMobile;
}());
var FeatureMobile = /** @class */ (function (_super) {
    __extends(FeatureMobile, _super);
    function FeatureMobile() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    FeatureMobile.prototype.call = function () {
        console.log('功能机按钮打电话');
    };
    FeatureMobile.prototype.send = function (message) {
        console.log('功能按钮发短信');
    };
    return FeatureMobile;
}(IMobile));
var SmartMobile = /** @class */ (function (_super) {
    __extends(SmartMobile, _super);
    function SmartMobile() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    SmartMobile.prototype.call = function () {
        console.log('智能机触屏打电话');
    };
    SmartMobile.prototype.send = function (message) {
        console.log('智能机触屏发短信: ', message);
    };
    SmartMobile.prototype.playGame = function () {
        console.log('智能机玩ps游戏');
    };
    return SmartMobile;
}(IMobile));
var smart1 = new SmartMobile();
smart1.call();
smart1.send('今天天气不错!');
smart1.playGame();
